<script setup>
import * as echarts from 'echarts';
import { provide } from 'vue';
import { settingStore } from '@/store';

provide('echarts', echarts);

const setting = settingStore();

window.addEventListener('resize', function () {
	if (innerWidth > 1200) {
		setting.isCollapse = false;
	}

	if (this.innerWidth < 1200) {
		setting.isCollapse = true;
	}
	console.log(this.document.body.clientWidth);
});
</script>
<template>
	<router-view />
</template>
<style lang="scss" scoped></style>
